<?php 
/**
 * 注册控制器
 */
class RegisterController extends Controller{

    public function index(){
    	if(IS_POST){
    		$model = K('Register');
			if(!$model->vRegister()){
				$this->error($model->error);
			}
			$this->success('注册成功',U('Login/index'));
    	}
       
	   $this->display();
    }


}
 
 
 
 
 